'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const u = require('../nodes/identity.cjs');
function r(t, i, l) {
  const { uniqueKeys: n } = t.options;
  if (n === !1) return !1;
  const o =
    typeof n == 'function'
      ? n
      : (e, s) =>
          e === s ||
          (u.isScalar(e) &&
            u.isScalar(s) &&
            e.value === s.value &&
            !(e.value === '<<' && t.schema.merge));
  return i.some(e => o(e.key, l));
}
exports.mapIncludes = r;
